home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1991 / Jan 91 / MacApp.Tech$ 1⁄25⁄91 / 2796-Re TDocument subclas-Jan91 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.3 KB  |  31 lines  |  [TEXT/GEOL]

  1. Item    9081670                         24-Jan-91        18:58PST
  2.  
  3. From:   ALGER                           Alger, Jeff,VCA
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. ------------------------------------------------------------------------------
  8.  
  9. Sub:    Re: TDocument subclass menu
  10.  
  11. Karam,
  12.  
  13. You might want to look over the MacApp.Tech$ traffic from summer of '89 in back
  14. issues of Frameworks or in the archives.  There was quite a bit of discussion
  15. on documents and databases back then, much of it spirited.  As to your specific
  16. problem of your document not being in the event chain, that is due to a
  17. fundamental architectural decision in the construction of MacApp.  The
  18. frontmost window establishes the context of events such as mouse clicks.  The
  19. document only receives these events if the frontmost window keeps its hands
  20. off.  No frontmost window, no dispatch to a document, since MacApp doesn't know
  21. WHICH document should apply.  You should also be aware that closing the last
  22. window of a document frees the document in the default behavior.  Both of these
  23. should lead you to consider creating some window to represent the database
  24. document as a whole, even if it contains trivial information.  For a good
  25. example, take a look at the Think C and Pascal environments, which use a
  26. Project window this way.
  27.  
  28. Regards,
  29. Jeff Alger
  30.  
  31.